import java.net.URL;

public class PlayMusic {

	java.applet.AudioClip clip;
	
	public PlayMusic() {

		URL url;
		
		url = getClass().getResource("/" + "batch" + ".wav");

	        clip = java.applet.Applet.newAudioClip(url);
                clip.play();
     
	}
	
	public void start() {
		//Ein Kommentar: Hier wird das File abgespielt
		clip.play();
	}
	
	public void stop() {
		if (clip != null) {

			clip.stop();
		}
	}
}